package com.example.travel.mapper;

import com.example.travel.entity.Hotel;
import com.example.travel.entity.Orderform;
import com.example.travel.entity.bo.OrderformBO;
import com.example.travel.entity.dto.HotelDTO;
import com.example.travel.entity.dto.UserDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HotelMapper {


    List<Hotel> queryHotelInfo(HotelDTO hotelDTO);

    boolean userBookHotel(Orderform orderform);

    void updateHotelInventory(Orderform orderForm);

    List<OrderformBO> queryOrderForm(UserDTO userDTO);
}
